package com.smartao.base.selecttype;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
import org.hibernate.annotations.ForeignKey;

import com.smartao.base.module.Module;
import com.smartao.core.orm.entity.BaseEntity;

/**
 * 选择项类别实体类
 * @author Ricky
 *
 */
@Entity
@Table(name = "T_BASE_SELECTTYPE")
public class Selecttype extends BaseEntity<Selecttype> {
	private static final long serialVersionUID = -7376834941589252258L;
	
	private String name;
	
	@ManyToOne
	@ForeignKey(name = "none")
	@JoinColumn(name = "module")
	@Fetch(FetchMode.JOIN)
	private Module module;
	
	private String code;
	
	private int dsporder=1;
	
	private String description;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getDsporder() {
		return dsporder;
	}

	public void setDsporder(int dsporder) {
		this.dsporder = dsporder;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
